{% extends 'auth/base_minimal.html' %}
{% block content %}

<h3>Use {{primary_id}} as a primary authentication service?</h3>
<p>After the switch all user group management (UI and REST API) will be
performed on <a href="{{primary_url}}">{{primary_id}}</a>.
</p>
<ul>
  <li>Proposed by {{generated_by}}</li>
  <li>Primary service app id is {{primary_id}}</li>
  <li>Primary service URL is <a href="{{primary_url}}">{{primary_url}}</a></li>
</ul>
<p><b>All current groups will be permanently deleted. There's no undo.</b></p>
<hr>
<p>
  <a class="btn btn-danger" href="#" onclick="javascript:submit(event);">
    Switch
  </a>
</p>

<form name="token" method="POST">
  <input type="hidden" name="xsrf_token" value="{{xsrf_token}}" />
</form>

<script type="text/javascript">
function submit(event) {
  document.token.submit();
  event.preventDefault();
  return false;
}
</script>

{% endblock %}
